package com.blb.web;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.blb.base.BaseServlet;
import com.blb.service.UserService;

@WebServlet("/deleteUser")
public class DeleteUserServlet extends BaseServlet {
	
	private static final long serialVersionUID = 1L;
	private UserService userService = new UserService();
	
	@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		String[] ids = req.getParameterValues("ids[]");
		userService.delete(ids);
	}
}
